package com.woniuxy.lab.woniu_lab.service;

import com.woniuxy.lab.woniu_lab.controller.form.CheckCodeForm;
import com.woniuxy.lab.woniu_lab.controller.form.GetCodeForm;
import com.woniuxy.lab.woniu_lab.controller.form.RegisterForm;
import com.woniuxy.lab.woniu_lab.model.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.math.BigDecimal;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author Silas
 * @since 2023-03-15
 */
public interface UserService extends IService<User> {
    User assertUser();

    String becomeVIP(String password);

    void becomeSVIP(String password);

    String sendCode(GetCodeForm form);

    Boolean checkCode(CheckCodeForm form);

    void register(RegisterForm registerForm);

    String loginByPwd(String phone, String password);

    String loginByCode(String phone, String code);

    void findMyPwd(String phone, String password);

    void changePwd(Integer userId, String password, String newPassword);

    String updatePic(MultipartFile file);

}
